<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class template extends CI_Controller {
    
    function __construct()
    {
        parent::__construct();
    }
    
    public function index()
    {
        echo "index";
    }
  
    // Create 1 Page
    public function giaitri()
    {
       // Render Template
       $data['title'] = 'Tieu đề';
       $this->load->view('header',$data);
       $data['list_top'] = Modules::run('entertaiment/list_top');
       $data['sieuhot'] = Modules::run('entertaiment/sieuhot');
       $this->load->view('left',$data);
       $this->load->view('content',$data);
       $this->load->view('footer');

    }
    
    public function node()
    {
       // Render Template
    //   $data['title'] = 'Node Title';
     //  $this->load->view('header',$data);
       
       // Render Left
       //$data['data'] = Modules::run('node/getnode'.$id);
     //  $this->load->view('left',$data);
       
       // Render Node Content
       echo Modules::run('node');  
            echo "error";
      // $this->load->view('content',$data);
       
       // Render Footer
      // $this->load->view('footer');       
    }
    
   
    
    public function baiviet()
    {
       $data['title'] = 'Title Artile';
       $this->load->view('header',$data);
       $data['top10hot'] = Modules::run('article/get10newshot');
       $this->load->view('left',$data);
       $this->load->view('content',$data);
       $this->load->view('footer');        
    }
    
    public function cntt()
    {
        // Load Modules
       $data['title'] = "Title VSOFT";    
        // Render Template
       $this->load->view('header',$data);
       $data['login'] = Modules::run('entertaiment/login');
       $this->load->view('left',$data);
       $this->load->view('content',$data);       
       $this->load->view('footer',$data);   
    }
}
?>